class CreateIncidentStatusChanges < ActiveRecord::Migration
  def self.up
    create_table :incident_status_changes do |t|
      t.integer :incident_id
      t.string :old_status
      t.string :new_status

      t.timestamps
    end
    add_index(:incident_status_changes, [:incident_id])
  end

  def self.down
    remove_index(:incident_status_changes, [:incident_id])
    drop_table :incident_status_changes
  end
end
